import time
spis = []
f = open('m1.sorted.txt')
for i in f:
    spis.append(int(i))
def bbl(spis):
    for i in range(len(spis) - 1):
        k=0
        for j in range(len(spis) - 1 - i):
            if spis[j] > spis[j+1]:
                t = sp[j]
                spis[j] = spis[j+1]
                spis[j+1] = t
                k += 1
            if k == 0:
                break
    return spis
start = time.perf_counter()
spis = bbl(spis)
finish = time.perf_counter()
print('m1.sorted', finish-start, 'milliseconds')
f1 = open('m1.sorted.txt')
sp2 = []
round ((finish-start)*1000)